Memory Management
Two chapters describe routines in Mac OS that help you create and dispose of pointers and handles.
"Introduction to Memory Management,"
describes memory management within an application's memory partition;
"Memory Manager,"
describes memory management outside the partition. The following functions are described in both chapters:
-
NewHandle
allocates a relocatable memory block of a specified size within an application's memory partition. To use it outside an application's memory partition, see
[link]
.
-
NewHandleClear
allocates prezeroed memory in a relocatable block of a specified size within an application's memory partition. To use it outside an application's memory partition, see
[link]
.
-
DisposeHandle
frees a relocatable block and its master pointer for other uses within an application's memory partition. To use it outside an application's memory partition, see
[link]
.
-
NewPtr
allocates a nonrelocatable block of memory of a specified size within an application's memory partition. To use it outside an application's memory partition, see
[link]
.
-
NewPtrClear
allocates prezeroed memory in a nonrelocatable block of a specified size within an application's memory partition. To use it outside an application's memory partition, see
[link]
.
-
DisposePtr
frees a nonrelocatable block for other uses within an application's memory partition. To use it outside an application's memory partition, see
[link]
.
© 1998 Apple Computer, Inc.| Previous | Chapter Contents | Chapter Top | Next |